// LinepCollection_BPA.cpp: implementation of the CLinepCollection_BPA class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "../../Include/Dat/LinepCollection_BPA.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CLinepCollection_BPA::CLinepCollection_BPA()
{

}

CLinepCollection_BPA::~CLinepCollection_BPA()
{

}

CLinep_BPA* CLinepCollection_BPA::GetFirstLinep()
{
	return (CLinep_BPA*)CCardCollection_BPA::GetFirstCard();
  
}

CLinep_BPA* CLinepCollection_BPA::Traverse(CLinep_BPA* pline,int nDirection)
{
 
	return (CLinep_BPA*)CCardCollection_BPA::Traverse(pline,nDirection);

}

CLinep_BPA* CLinepCollection_BPA::GetLinep(char *strName1, double dkV1, char *strName2, double dkV2, char ID)
{
	CLinep_BPA tempLinep;
	strcpy(tempLinep.m_strName1, strName1);
	tempLinep.m_dkV1 = dkV1;
	strcpy(tempLinep.m_strName2, strName2);
	tempLinep.m_dkV2 = dkV2;
	tempLinep.m_chCKTLD = ID;
	return (CLinep_BPA*) GetCard(&tempLinep);
}
